package com.wyh.blog.model.vo.request;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserLoginRequest {
    @NotNull(message = "用户名不能为空")
    @Length(message = "用户名长度不能超过20", max = 20)
    private String userName;

    @Length(message = "用户密码长度要大于6小于20", max = 20, min = 5)
    private String password;
}
